package com.uzai.console.web.sop;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.github.xiaoymin.knife4j.annotations.ApiSort;
import com.uzai.console.dto.BaseDto;
import com.uzai.console.dto.sop.sopprirewardrule.SopPriRewardRuleDto;
import com.uzai.console.dto.sop.sopprirewardrule.SopPriRewardRuleIdDto;
import com.uzai.console.dto.sop.sopprirewardrule.SopPriRewardRuleQuery;
import com.uzai.console.dto.sop.sopprirewardrule.SopPriRewardRuleSendParaDto;
import com.uzai.console.dto.sop.sopprirewardruleuser.SopPriRewardRuleUserQuery;
import com.uzai.console.service.sop.SopPriRewardRuleService;
import com.uzai.console.service.sop.SopPriRewardRuleUserService;
import com.uzai.console.vo.sop.sopprirewardrule.SopPriRewardRuleSendParaVo;
import com.uzai.console.vo.sop.sopprirewardrule.SopPriRewardRuleVo;
import com.uzai.console.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * SOP定向规则
 * @author liuqi
 * @date 2021年08月16日 15:11
 */
@Api(value = "SOP定向规则调整会员",tags = "SOP任务|SOP定向规则调整会员")
@ApiSort(31)
@RestController
public class SopPriRewardRuleUserController extends BaseController {
    private Logger logger = LoggerFactory.getLogger(SopPriRewardRuleUserController.class);

    @Autowired
    private SopPriRewardRuleUserService sopPriRewardRuleUserService;

    @ApiOperation(value = "分页查询SOP定向规则调整会员列表", notes = "分页查询SOP定向规则调整会员列表", response = SopPriRewardRuleVo.class)
    @ApiOperationSupport(order = 1)
    @PostMapping("/sopPriRewardRuleUser/findByPage")
    public Object findSopPriRewardRuleUserPage(@RequestBody SopPriRewardRuleUserQuery sopPriRewardRuleUserQuery){
        return sopPriRewardRuleUserService.findByPage(sopPriRewardRuleUserQuery);
    }

}
